<template>
  <div class="container">
    <div class="box">
      <img src="@/assets/404.png" alt="" />
      <el-button type="primary" @click="clickHanlder">
        <el-icon><Back /></el-icon>
        返回首页</el-button
      >
    </div>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from "vue-router"

const router = useRouter()
const clickHanlder = () => {
  router.push("/")
}
</script>

<style scoped lang="less">
.container {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  .box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    img {
      width: 300px;
    }
  }
}
</style>
